package com.visec.hdy.hadoop.context;

import java.io.File;

import com.visec.hdy.hadoop.standard.WriteContext;

public class FileWriteContextImpl extends DefaultContextImpl implements WriteContext<String> {

	public FileWriteContextImpl(String folder, long count) {
		super(folder, count);
	}

	@Override
	public boolean write() {
		return false;
	}

	@Override
	public File newFile(String k) {
		String path = k.startsWith("/") ? k : folder + '/' + k;
		return new File(path);
	}

}
